<template>
  <el-table
    :data="tableData"
    :style="{ width: '100%' }"
    border
    :cell-style="{ 'text-align': 'center' }"
    :header-cell-style="{ 'text-align': 'center' }"
  >
    
    <el-table-column prop="methodName" label="方法名"/>
    <el-table-column prop="argument" label="参数" />
    <el-table-column prop="returnValue" label="返回值" />
    <el-table-column prop="description" label="描述" />
  </el-table>
</template>

<script setup lang="ts">
import { ref } from 'vue';

defineOptions({ name: "APIView" });

const tableData = ref([
  {
    description: "将hex字符串float64",
    methodName: "HexStringToFloat",
    argument: "hexStr: string;  start: number;  end: number",
    returnValue: "Double",
  },
  {
    description: "将hex字符串转为hex字符串数组，默认每两个字符一个元素",
    methodName: "HexStringToHexArray",
    argument: "hexStr: string",
    returnValue: "string[]",
  },
  {
    description: "将hex字符串转为字符串",
    methodName: "HexStringToString",
    argument: "hexStr: string",
    returnValue: "string",
  },
  {
    description: "将 DMS 格式的字符串转换为度格式",
    methodName: "DMSStringToDegrees",
    argument: "dms: string",
    returnValue: "Double",
  },
  {
    description: "首次基准值获取器，应对cdm解算结果无累计位移量(获取解算)，取第六次结果坐标为基准值",
    methodName: "GetBaseValueCdm",
    argument: "pointName: string;  fileName string",
    returnValue: "map<string, double>",
  }


]);
</script>

<style scoped></style>
